package com.campus.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class RegisterDto {
    private String loginName;
    private String password;
    private String email;
    @Schema(
            allowableValues = {"admin","root","student","teacher"}
    )
    private String role;

    public RegisterDto(String loginName,String password,String role){
        this.loginName=loginName;
        this.password=password;
        this.role=role;
        this.email=null;
    }
}
